/*
 * Copyright (c) 2017-present, CV4J Contributors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.cv4j.rxcv4j;

import com.cv4j.core.datamodel.CV4JImage;
import com.cv4j.core.filters.CommonFilter;

import java.util.List;

/**
 * 包装cv4 jimage
 *
 * @since 2021-05-17
 */
public class WrappedCV4JImage {
    CV4JImage image;
    List<CommonFilter> filters;

    /**
     * 包装cv4 jimage
     *
     * @param image 图像
     * @param filters 过滤器
     */
    public WrappedCV4JImage(CV4JImage image, List<CommonFilter> filters) {
        this.image = image;
        this.filters = filters;
    }

    /**
     * 得到图像
     *
     * @return {@link CV4JImage}
     */
    public CV4JImage getImage() {
        return image;
    }

    /**
     * 设置图像
     *
     * @param image 图像
     */
    public void setImage(CV4JImage image) {
        this.image = image;
    }

    /**
     * 得到过滤器
     *
     * @return {@link List<CommonFilter>}
     */
    public List<CommonFilter> getFilters() {
        return filters;
    }

    /**
     * 设置过滤器
     *
     * @param filters 过滤器
     */
    public void setFilters(List<CommonFilter> filters) {
        this.filters = filters;
    }
}
